package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CommentOnCommodity {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer uid; //用户id

    private Integer oid; //订单id

    private Integer serviceStars; //服务评价星

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date etime;// 评价时间

    private Integer isDelete;//删除

    @TableField(exist = false)
    private List<EvaluateDetail> detailList; //评价详情表

    @TableField(exist = false)
    private Users user;//用户对象
}